package com.loongtech.bi.entity.core;

import java.io.Serializable;

public class KeyRoleIdHeroIdAndStar implements Serializable
{
	// 角色标识
	private String				roleId;
	// 英雄id
	private int					heroId;
	// 英雄星级
	private int					heroStar;
	private static final long	serialVersionUID	= 1L;

	public KeyRoleIdHeroIdAndStar()
	{
	}

	public KeyRoleIdHeroIdAndStar(String roleId, int heroId, int starNum)
	{
		this.roleId = roleId;
		this.heroId = heroId;
		this.heroStar = starNum;
	}

	public String getRoleId()
	{
		return roleId;
	}

	public void setRoleId(String roleId)
	{
		this.roleId = roleId;
	}

	public int getHeroId()
	{
		return heroId;
	}

	public void setHeroId(int heroId)
	{
		this.heroId = heroId;
	}

	public int getHeroStar()
	{
		return heroStar;
	}

	public void setHeroStar(int heroStar)
	{
		this.heroStar = heroStar;
	}

	@Override
	public int hashCode()
	{
		final int prime = 31;
		int result = 1;
		result = prime * result + heroId;
		result = prime * result + heroStar;
		result = prime * result + ((roleId == null) ? 0 : roleId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
		{
			return true;
		}
		if (obj == null || getClass() != obj.getClass())
		{
			return false;
		}
		final KeyRoleIdHeroIdAndStar o = (KeyRoleIdHeroIdAndStar) obj;
		if (roleId == null && o.roleId != null || null != roleId && !roleId.equals(o.roleId))
		{
			return false;
		}
		return heroId == o.heroId && heroStar == o.heroStar;
	}

	@Override
	public String toString()
	{
		return "KeyRoleIdHeroIdAndStar [roleId=" + roleId + ", heroId=" + heroId + ", heroStar=" + heroStar + "]";
	}
}
